package com.mezz.bones.framework.outbox.repository;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mezz.bones.framework.outbox.domain.entity.OutboxMessage;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 事务消息表 服务类
 * </p>
 *
 * @author mezz
 * @since 2025-04-29
 */
public interface IOutboxMessageRepository extends IService<OutboxMessage> {

    List<OutboxMessage> findMessagesToArchive(Date archiveDate, Integer limit);
}
